{extend name='common:base'}
{block name="content"}
<form  id="form" method="post" action="">
    <div class="form-group">
        <label for="exampleInputEmail1">用户名</label>
        <input type="email" class="form-control" id="exampleInputEmail1" placeholder="用户名" name="name" readonly value="{$oldData['mname']}">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword1">旧密码</label>
        <input type="password" name="oldPassword" class="form-control" required id="exampleInputPassword1" placeholder="输入旧密码">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword2">新密码</label>
        <input type="password" name="password" class="form-control" required id="exampleInputPassword2" placeholder="输入新密码" data-rule-rangelength="[6,20]" data-msg-rangelength="密码长度不正确">
    </div>
    <div class="form-group">
        <label for="exampleInputPassword3">确认密码</label>
        <input type="password" name="confPassword" class="form-control" required id="exampleInputPassword3" placeholder="再次输入新密码" data-rule-equalTo="#exampleInputPassword2" data-msg-equalTo="两次密码不一致">
    </div>
    {:token()}
    <button type="submit" class="btn btn-default">提交</button>
    <button type="reset" class="btn btn-default">取消</button>
</form>
{/block}
{block name="extend_js"}
<!--扩展js载入-->
<script src="/bower/jquery-validation/dist/jquery.validate.js"></script>
<script src="/bower/jquery-validation/src/localization/messages_zh.js"></script>
<script>
    $().ready(function () {
        $("#form").validate();
    })
</script>
{/block}